package Builder.tow;

/**
 * @ProjectName: 23种设计模式
 * @Package: Builder.tow
 * @ClassName: Terrain
 * @Author: renhan
 * @Description:
 * @Date: 2020/11/19 10:16
 * @Version: 1.0
 */
public class Terrain {
    Wall w;
    Fort f;
    Mine m;
}

class Wall {
    int x, y, w, h;
    public Wall(int x, int y, int w, int h) {
        this.x = x;
        this.y = y;
        this.w = w;
        this.h = h;
    }
}

class Fort {
    int x, y, w, h;
    public Fort(int x, int y, int w, int h) {
        this.x = x;
        this.y = y;
        this.w = w;
        this.h = h;
    }
}

class Mine {
    int x, y, w, h;
    public Mine(int x, int y, int w, int h){
        this.x = x;
        this.y = y;
        this.w = w;
        this.h = h;
    }
}